These routines print to Standard Error (stderr) and are compatible with nShell I/O redirection.
NSH_printf_err
--------------
void NSH_printf_err(const char *fmt, ...);
PARAMETERS
Quite a few, please refer to a C language reference.
RETURNS
none
PROCESS
All parameters are converted to a character string. The resulting string is sent to Standard Error.
NSH_putchar_err
---------------
void NSH_putchar_err(char c);
PARAMETERS
char c character to be output
RETURNS
none
PROCESS
The passed character is printed on Standard Error. Note that a lot of overhead is involved in sending a single character back through to a shell. Whenever possible, use NSH_puts_err or NSH_putStr_err to output larger blocks of text.